const api = {
  withdrawServerKickback: '/server-kickback/withdrawServerKickback',
  getServerKickbackByServerUserId: '/server-kickback/getServerKickbackByServerUserId',
  // 获取账户信息和认证状态
  getCertifInfo:'/server-kickback/getServerUserAccountInfo',
  //上传企业认证信息
  uploadCertifyInfo:'/server-kickback/fillInInformation'
};

// 佣金提现
export const withdrawServerKickback = (withdrawServerKickbackDto) => {
  return uni.$http.post(api.withdrawServerKickback,withdrawServerKickbackDto);
};

// 获取服务商佣金明细
export const getServerKickbackByServerUserId = () => {
  return uni.$http.get(api.getServerKickbackByServerUserId);
};

//看当前的认证状态
export const getCertifInfo=()=>{
	return uni.$http.get(api. getCertifInfo);
	
}

//上传企业认证信息
	
export const uploadCertifyInfo=(serverUserAccountInfoDto)=>{
	return uni.$http.post(api.uploadCertifyInfo,serverUserAccountInfoDto);
}